package com.sanben.demand.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sanben.demand.data.req.CommentReq;
import com.sanben.demand.data.vo.CommentVo;
import com.sanben.demand.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cyh
 * @description: 评论表实体类
 * @date: 2020-08-11
 */
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 列表分页
     *
     * @param page
     * @param req
     * @return
     */
    List<CommentVo> page(Page<CommentVo> page,
                         @Param("req") CommentReq req);
}
